<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <!-- 输出到控制台配置的彩色日志 -->
    <property name="console_pattern" value="%boldCyan([%-5level]) %boldRed(%-12(%d{yyyy-MM-dd HH:mm:ss.SSS})) %boldGreen([%thread]) %highlight(%c.%M[%F][%L]:) %msg%n"/>
    <!-- 字符编码定义 -->
    <property name="charset" value="UTF-8"/>

    <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>${console_pattern}</pattern>
            <charset>${charset}</charset>
        </encoder>
    </appender>

    <root level="info">
        <appender-ref ref="console"/>
    </root>

</configuration>